#ifndef _GAMETEAM_H_
#define _GAMETEAM_H_




class  GameCreature;

class GameTeam
{
public:

	friend class MapScene;
	friend class MapManager;
	friend class BattleSession;
	friend class BattleManager;

	GameTeam();
	~GameTeam();

	fvoid			Init( GameCreature* leader );
	fvoid			Release();

	fbool			Join( GameCreature* c );
	fbool			Leave( GameCreature* c );

	fbool			IsLeader( GameCreature* c );

	fvoid			UpdatePos();

	fint32			GetMemberCount()
	{
		return mMemberCount;
	}

	GameCreature*	GetMember( fint32 i )
	{
		return mMembers[ i ];
	}

	GameCreature*	GetLeader()
	{
		return mMembers[ 0 ];
	}

protected:

	fint32					mMemberCount;
	GameCreature*			mMembers[ MAX_TEAM_CREATURE ];

};



#endif

